package com.ruoyi.purchase.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * supplyDetail对象 supply_detail
 * 
 * @author kevinness
 * @date 2025-01-15
 */
public class SupplyDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 货品批号 */
    private String rawProductBatch;

    /** 订单编号 */
    private String orderNo;

    /** 供货商编码 */
    @Excel(name = "供货商编码")
    private String supplierCode;

    /** 货品名称 */
    private String name;

    /** 货源地 */
    @Excel(name = "货源地")
    private String origin;

    /** 牧场 */
    private String ranch;

    /** 工厂/屠宰场 */
    private String factory;

    /** 饲料 */
    private String feed;

    /** 是否注射疫苗 */
    private String vaccine;

    /** 生产日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生产日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date productionDate;

    /** 保质期 */
    @Excel(name = "保质期")
    private Long shelfLife;

    /** 备注 */
    @Excel(name = "备注")
    private String remarks;

    public void setRawProductBatch(String rawProductBatch) 
    {
        this.rawProductBatch = rawProductBatch;
    }

    public String getRawProductBatch() 
    {
        return rawProductBatch;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public void setSupplierCode(String supplierCode)
    {
        this.supplierCode = supplierCode;
    }

    public String getSupplierCode() 
    {
        return supplierCode;
    }
    public void setOrigin(String origin) 
    {
        this.origin = origin;
    }

    public String getOrigin() 
    {
        return origin;
    }

    public String getRanch() {
        return ranch;
    }

    public void setRanch(String ranch) {
        this.ranch = ranch;
    }

    public String getFactory() {
        return factory;
    }

    public void setFactory(String factory) {
        this.factory = factory;
    }

    public String getFeed() {
        return feed;
    }

    public void setFeed(String feed) {
        this.feed = feed;
    }

    public String getVaccine() {
        return vaccine;
    }

    public void setVaccine(String vaccine) {
        this.vaccine = vaccine;
    }

    public void setProductionDate(Date productionDate)
    {
        this.productionDate = productionDate;
    }

    public Date getProductionDate() 
    {
        return productionDate;
    }
    public void setShelfLife(Long shelfLife) 
    {
        this.shelfLife = shelfLife;
    }

    public Long getShelfLife() 
    {
        return shelfLife;
    }
    public void setRemarks(String remarks) 
    {
        this.remarks = remarks;
    }

    public String getRemarks() 
    {
        return remarks;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("rawProductBatch", getRawProductBatch())
            .append("orderNo", getOrderNo())
            .append("supplierCode", getSupplierCode())
            .append("name", getName())
            .append("origin", getOrigin())
            .append("ranch", getRanch())
            .append("factory", getFactory())
            .append("feed", getFeed())
            .append("vaccine", getVaccine())
            .append("productionDate", getProductionDate())
            .append("shelfLife", getShelfLife())
            .append("remarks", getRemarks())
            .toString();
    }
}
